package com.amado.course52Jvm;

import java.util.ArrayList;
import java.util.List;

public class OutOfMeorySpace {
	public static void main(String[] args) {
		int i=0;
		List<String[]> list =new ArrayList();
		while(true) {
			list.add(new String[1024*1024]);
			System.out.println(i++);
		}
	}
}
